package com.food.user.service;

import com.food.user.dto.UserAddressDto;
import com.food.user.entity.UserAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import com.food.user.form.AddUserAddressForm;
import com.food.user.form.UpdateUserAddressForm;

import java.util.ArrayList;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 帅得一
 * @since 2023年06月17日
 */
public interface UserAddressService extends IService<UserAddress> {

    UserAddress addUserAddress(AddUserAddressForm form);

    UserAddress updateUserAddress(UpdateUserAddressForm form) throws  Exception;

    void delUserAddress(Long addressId) throws  Exception;

    ArrayList<UserAddressDto> listAllAddress();
}
